package tv.huan.tencent.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import tv.huan.common.annotation.Excel;
import tv.huan.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 消费记录对象 card_consume_log
 * 
 * @author admin
 * @date 2020-12-23
 */
public class CardConsumeLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Integer id;

    /** card_pool主键 */
    @Excel(name = "card_pool主键")
    private Integer cardId;

    /** 卡名称 */
    @Excel(name = "卡名称")
    private String cardName;

    /** null */
    @Excel(name = "null")
    private Integer cardType;

    /** 订购数量 */
    @Excel(name = "订购数量")
    private Integer orderCount;

    /** 开通数量 */
    @Excel(name = "开通数量")
    private Integer openCount;

    /** 消费渠道 */
    @Excel(name = "消费渠道")
    private Integer consumeChannel;

    /** null */
    @Excel(name = "null", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCardId(Integer cardId) 
    {
        this.cardId = cardId;
    }

    public Integer getCardId() 
    {
        return cardId;
    }
    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }
    public void setCardType(Integer cardType) 
    {
        this.cardType = cardType;
    }

    public Integer getCardType() 
    {
        return cardType;
    }
    public void setOrderCount(Integer orderCount) 
    {
        this.orderCount = orderCount;
    }

    public Integer getOrderCount() 
    {
        return orderCount;
    }
    public void setOpenCount(Integer openCount) 
    {
        this.openCount = openCount;
    }

    public Integer getOpenCount() 
    {
        return openCount;
    }
    public void setConsumeChannel(Integer consumeChannel) 
    {
        this.consumeChannel = consumeChannel;
    }

    public Integer getConsumeChannel() 
    {
        return consumeChannel;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("cardName", getCardName())
            .append("cardType", getCardType())
            .append("orderCount", getOrderCount())
            .append("openCount", getOpenCount())
            .append("consumeChannel", getConsumeChannel())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("syncTime", getSyncTime())
            .toString();
    }
}
